<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
      xmlns:h="http://xmlns.jcp.org/jsf/html"
      xmlns:p ="http://primefaces.org/ui" >

    <h:head>
        <title>MeteoCal - Welcome</title>
    </h:head>
    <h:body>
        <h:form id="login">
            <p:growl id="growl" autoUpdate="true" showSummary="false" redisplay="false" showDetail="true" sticky="true" />  
            
            
            <div align="center">
                
                <p:panel id="loginPanel" style="width: 450px;height: 175px;position: absolute;top: 200px;left: 550px;border-color: #ffffff">
                <div align="center">
                <h:panelGrid columns="2" >
                    
                    <p:outputLabel style="font-weight: bold;" for="login_username" value="Username"/>
                    <p:inputText id="login_username" value="#{loginBean.username}" required="true" requiredMessage="Insert Username"/>
                    
                    
                        
                    <p:outputLabel  style="font-weight: bold;" for="login_password" value="Password"/>
                    <p:password id="login_password" value="#{loginBean.password}" required="true" requiredMessage="Insert Password"/>
                     <br></br><br></br>
                     <div align="center">
                    <p:commandButton id="submitLogin" value="Enter MeteoCal" action="#{loginBean.login()}" update="login" />
                    </div>
                    <br></br><br></br>
                    <div align="right">
                    <p:link outcome="sign-up" value="Sign Up"/>
                    </div>
                </h:panelGrid>
                </div>
            </p:panel>
            </div>
            
            
        </h:form>
        
    </h:body>
</html>
